package com.lark.context;

import com.google.common.eventbus.EventBus;
import com.lark.model.ClientModel;
import com.lark.model.SettingModel;
import com.lark.model.TaskModel;
import javafx.application.HostServices;
import javafx.scene.Node;
import javafx.scene.Scene;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 全局容器
 */
public enum ApplicationContext {

    INSTANCE;

    public static Scene scene;
    public static Stage stage;

    public static String theme;

    public static ClientModel clientModel;

    public static SettingModel settingModel;

    public static StackPane root;
    public static StackPane SHOW_STACK_PANE;

    public static final List<TaskModel> taskModelList = new ArrayList<>();
    public static final Map<String, Node> taskModelMap = new HashMap<>();
}
